package com.example.demo.controller;

import com.example.demo.entity.Articleinfo;
import com.example.demo.entity.vo.ArticleinfoVo;
import com.example.demo.service.ArticleService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Controller
public class ArticleController {
    @Autowired
    private ArticleService articleService;

    public ArticleinfoVo getById(@Param("id") int id){
        return articleService.getById(id);
    }
}
